var o = getApp();
Component({
  behaviors: [],
  properties: {
    goodsId: {
      type: String,
      value: '',
      observer: function (t) {
        var e = this;
        t &&
          o.$api.goods
            .jxdpGodos({ goods_id: t, type: 'one' })
            .then(function (o) {
              if (
                (console.log('mix goodsId observer: ', o),
                'total' in o && 0 != o.total)
              ) {
                var t = o.total,
                  s = o.out_join_goods;
                e.setData({ total: t, goods_list: s[0] && s[0].goods_list });
              } else e.setData({ total: 0 });
            });
      },
    },
  },
  data: { goods_list: [], total: 0 },
  methods: {
    _jumpTo: function (o) {
      var t = o.currentTarget.dataset.url;
      wx.navigateTo({ url: t });
    },
  },
});
